package com.lottery.material.dao.conf;

import com.lottery.material.pojo.conf.AreaDict;

import java.util.List;

/**
 * @description 区域字典Mapper
 * @author rambo
 * @date 2019-05-14 14:23
 */
@SuppressWarnings("JavaDoc")
public interface AreaDictMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(AreaDict record);

    Integer insertSelective(AreaDict record);

    AreaDict selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(AreaDict record);

    Integer updateByPrimaryKey(AreaDict record);

    /**
     * description：根据地区id查询区域字典数据
     * user 朱正磊
     * time 2019-05-17 17:01
     * @param regionId 地区id
     * @return 返回区域字典数据
     */
    AreaDict findByRegionId(Integer regionId);

    /**
     * description: 查询所有省市区信息
     * author sunny
     * createDate 2019-05-15 下午 3:43
     * @return
     */
    List<AreaDict> findAll();

    /**
     * description: 根据父id查询
     * author sunny
     * createDate 2019-05-15 下午 4:55
     * @param parentId
     * @return
     */
    List<AreaDict> findByParentId(Integer parentId);

}
